package com.yytek.common.core.constant;

/**
 * 缓存的key 常量
 * 
 * @author ruoyi
 */
public class CacheConstants
{
    /**
     * 缓存有效期，默认720（分钟）
     */
    public final static long EXPIRATION = 720;

    /**
     * 缓存刷新时间，默认120（分钟）
     */
    public final static long REFRESH_TIME = 120;

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";


    /**
     * 驱动协议连接缓存前缀
     */
    public final static String GW_DEVICE_CONECT_KEY = "gw_device_conect:";
    /**
     * 设备缓存需要用的信息
     */
    public  final static String DEVICE_USEINFO_KEY = "device_use_info:";
    /**
     * 设备采集状态信息
     */
    public static final String DEVICE_STATE_HANDLE = "device_state_handle:";
    /**
     * 产品缓存信息
     */
    public static final String PRODUCT_USEINFO_KEY = "product_use_info:";
    /**
     * 时序数据库批量消息队列
     */
    public static final String TDDB_INSERT_QUEUE_KEY = "tddb_insert_queue:";
    /**
     * 时序数据库批量插入数据队列
     */
    public static final String TDDB_INSERT_QUEUE_DATA_KEY = "tddb_insert_queue_data_key:";
    /**
     * 任务模板缓存信息
     */
    public static final String TASK_TEMPLATE_INFO = "task_template_info:";
    /**
     * 设备任务缓存信息
     */
    public static final String TASK_JOB_INFO = "task_job_info:";
}
